<?php
require './library/db_constants.php';
require './library/planets.php';

if(!isset($_GET['id'])) {
    echo 'Invalid id. <a href="listPlanets.php">Go back.</a>';
    exit();
}

$planets = new planets;
$planets->deletePlanet($_GET['id']);

?>
